<template>
  <div class="home">
    <Swiper />
  </div>
</template>

<script>
// @ is an alias to /src
// import Swiper from '@components/Swiper.vue'
export default {
  name: 'home',
  data() {
      return {
      title: "首页",
      loadingShow:false,
	      tagChecked:[
	      	true
        ],
        categoryList: [
          { name: '标签一', id:0 },
          { name: '标签二',id:1 },
          { name: '标签三' ,id:2 },
          { name: '标签四',id:3 },
          { name: '标签五',id:4 },
          { name: '标签五',id:5 },
          { name: '标签五',id:6 },
          { name: '标签五',id:7 },
          { name: '标签五',id:8 },
          { name: '标签五',id:9 },
          { name: '标签五',id:10 },
          { name: '标签五',id:11 },
          { name: '标签五',id:12 },
        ],
    };
  },
  watch:{
  },
  created(){
	  this.$api.common.version().then(res=>{

    });
  },
  methods: {
	  switchCategory:function ( id ) {
		  var t = this;
		  t.tagChecked.map((v,k)=>{
			  if( k !== id ){
				  t.tagChecked.splice(k, 1, false)
			  }
		  });
		  this.loadingShow = true;
		  setTimeout(()=>{
			  this.loadingShow = false;
		  },2000);
	  },
  }
}
</script>

<style scoped lang="scss">
  .home{
    padding: 50px 0 0 0;
  }
</style>
